<?php

namespace App\Http\Requests\Backend\Auth;

use App\Http\Requests\BaseRequest;

class MenuRequest extends BaseRequest
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * 表单验证.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'rule_pid' => 'required|integer',
			'rule_name' => 'required|max:50',
			'rule_route' => 'required|max:80',
			'rule_icon' => 'required|max:200',
			'rule_remark' => 'required',
			'ismenu' => 'required|integer',
			'sort' => 'required|integer',
			'status' => 'required|integer',
			'modules' => 'required|max:255',
			'deleted_at' => '|integer',

        ];
    }
}
